package com.sh.data.engine.domain.authority.model.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.sh.data.engine.domain.base.model.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
public class UserProjectDomain extends BaseDomain {

    /**
     * 用户id
     */
    private String userId;
    /**
     * 工作空间id
     */
    private Long projectId;
    /**
     * 角色id
     */
    private int roleId;

    /**
     * 记录是否可用，1：可用，0：不可用
     */
    @TableLogic(value = "1", delval = "0")
    private Integer rowState;
}
